﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo6
{
	class Program
	{
		
		static void Main(string[] args)
		{
			Console.WriteLine("请输入菱形的边长");
			int a = int.Parse(Console.ReadLine());
			for (int i = 0; i <= a; i++)
			{
				for (int j = a-i; j > 0  ; j--)
				{
					Console.Write(" ");
				}
				for (int j = 0; j < 2*i-1; j++)
				{
					Console.Write("*");
				}
				Console.WriteLine();
			}
			for (int i = 1; i < a; i++)
			{
				for (int j = 0; j < i; j++)
				{
					Console.Write(" ");
				}
				for (int j = 2*i-1 ; j <= 2 * a - 3; j++)
				{
					Console.Write("*");
				}
				Console.WriteLine();
			}
			Console.ReadLine();
		}
	}
}
